import { request } from '../../../request';

/**
 * 新增设备信息
 *
 * @param data
 * @returns
 */
export function addDevice(data: any) {
  return request({
    url: '/inspection/inspectionform/insertMachine',
    method: 'post',
    data
  });
}

/** 编辑设备信息 */
export function editDevice(data: any) {
  return request({
    url: '/inspection/inspectionform/updateMachine',
    method: 'post',
    data
  });
}

/** 禁用设备信息 */
export function disableDelete(data: any) {
  return request({
    url: '/inspection/inspectionform/deleteMachine',
    method: 'post',
    data
  });
}

/** 启用设备信息 */
export function enableDelete(data: any) {
  return request({
    url: '/inspection/inspectionform/startMachine',
    method: 'post',
    data
  });
}
